package com.sky.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "仪表盘核心指标数据")
public class DashboardCoreMetricsVO {

    @ApiModelProperty("总借阅量指标")
    private MetricData totalBorrowings;

    @ApiModelProperty("当前借出数指标")
    private MetricData currentBorrowings;

    @ApiModelProperty("逾期数量指标")
    private MetricData overdueItems;

    @ApiModelProperty("新增用户数指标")
    private MetricData newUsers;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class MetricData {
        @ApiModelProperty("指标值")
        private Integer value;

        @ApiModelProperty("变化率")
        private Double trend;
    }
} 